import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.5
import gtModule 1.0

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    Column {
        anchors.centerIn: parent
        //自定义控件
        GtCell {
            id: cell
            width: 200
            height: 80
            electric: slider.value
            color: 'orange'
            threshold: 30
        }

        Slider {
            id: slider
            width: 200
            from: 0
            value: 20
            to: 100
        }
    }
}
